Other Structs
The following structs are available globally.
-
Struct to hold on to strings.
See moreDeclaration
Swift
public struct FHIRString: FHIRPrimitive, CustomStringConvertible, ExpressibleByStringLiteral
-
Data encoded as a base-64 string.
See moreDeclaration
Swift
public struct Base64Binary: FHIRPrimitive, FHIRJSONType, ExpressibleByStringLiteral, CustomStringConvertible
-
A date for use in human communication. Named
FHIRDate
to avoid the numerous collisions withFoundation.Date
.Month and day are optional and there are no timezones.
See moreDeclaration
Swift
public struct FHIRDate: DateAndTime
-
A time during the day, optionally with seconds, usually for human communication. Named
FHIRTime
to match withFHIRDate
.Minimum of 00:00 and maximum of < 24:00. There is no timezone. Since decimal precision has significance in FHIR, Time initialized from a string will remember the seconds string until it is manually set.
See moreDeclaration
Swift
public struct FHIRTime: DateAndTime
-
A date, optionally with time, as used in human communication.
If a time is specified there must be a timezone; defaults to the system reported local timezone.
See moreDeclaration
Swift
public struct DateTime: DateAndTime
-
An instant in time, known at least to the second and with a timezone, for machine times.
See moreDeclaration
Swift
public struct Instant: DateAndTime
-
Struct to hold on to URLs.
See moreDeclaration
Swift
public struct FHIRURL: FHIRPrimitive, CustomStringConvertible
-
Struct to hold on to a 32-bit integer value.
See moreDeclaration
Swift
public struct FHIRInteger: FHIRPrimitive, LosslessStringConvertible, ExpressibleByStringLiteral, ExpressibleByIntegerLiteral
-
Holds context during instantiation.
See moreDeclaration
Swift
public struct FHIRInstantiationContext
-
Struct to hold on to a decimal value.
By design, FHIRDecimal does not conform to
See moreExpressibleByFloatLiteral
in order to avoid precision issues.Declaration
Swift
public struct FHIRDecimal: FHIRPrimitive, LosslessStringConvertible, ExpressibleByStringLiteral, ExpressibleByIntegerLiteral
-
Errors thrown during serialization and deserialization.
See moreDeclaration
Swift
public struct FHIRValidationError: Error, CustomStringConvertible
-
Struct to hold request headers. By default, the
See moreAccept-Charset
header is set toutf-8
upon initialization.Declaration
Swift
public struct FHIRRequestHeaders
-
Parameters to pass along when making a request.
See moreDeclaration
Swift
public struct FHIRRequestParameters
-
Options to pass along to request handlers.
See moreDeclaration
Swift
public struct FHIRRequestOption: OptionSet
-
Struct to hold on to a boolean value.
See moreDeclaration
Swift
public struct FHIRBool: FHIRPrimitive, LosslessStringConvertible, ExpressibleByBooleanLiteral